﻿
@{
    ViewData["Title"] = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model Wslzy.Auxiliary.Infrastructure.ResultMsg<List<Wslzy.Auxiliary.Web.ViewModels.AccountVM>>
<h1>Index</h1>

<input type="button" value="新增" id="btnAdd" onclick="add();" />

<table>


    @if (Model.IsSuccess)
    {
        @foreach (var item in Model.Data)
        {
    <tr>
        <td style="display:none">@item.Id</td>
        <td>@item.Name</td>
        <td>@item.Phone</td>
        <td>@item.Enabled</td>
        <td><input type="button" value="修改" /></td>
    </tr>
        }
    }
    else
    {
        <tr>
            <td>@Model.Msg</td>
        </tr>
    }
</table>


<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/account/index.js"></script>